package com.benmei.weike.dto;

import java.util.Date;

/**
 * Created by Peter on 2018/5/28.
 */
public class TimeBlock {
    private Date date; // 时间戳（毫秒）  1526794200000 -->> 2018/5/20 13:30
    private int is_valid;//是否可用：0 Open，1 Close，2 Booked
    private boolean exists;// 数据库中是否存在该时间块，true：存在，false：不存在
    private String platform;// 被预约的平台：A：A版，T：青少版
    public TimeBlock() {

    }
    public TimeBlock(Date date, int is_valid) {
        this.date = date;
        this.is_valid = is_valid;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public boolean isExists() {
        return exists;
    }

    public void setExists(boolean exists) {
        this.exists = exists;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getIs_valid() {
        return is_valid;
    }

    public void setIs_valid(int is_valid) {
        this.is_valid = is_valid;
    }
}
